package com.ssm.helong.shop.service.impl;

import com.ssm.helong.shop.Dao.OrderMapper;
import com.ssm.helong.shop.entity.Order;
import com.ssm.helong.shop.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl  implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public int addOrder(Order order) {

        return orderMapper.addOrder(order);
    }

    @Override
    public int deleteOrder(Integer id) {
        return  orderMapper.deleteOrder(id);
    }

    @Override
    public void updateOrder(Order order) {
        orderMapper.updateOrder(order);

    }
}
